<script type="text/javascript">window["webRootVali"]="${valCxt}";</script>
<link rel="stylesheet" href="${valCxt}art-dialog/css/ui-dialog.css"  type="text/css">
<script type="text/javascript" src="${valCxt}art-dialog/js/dialog-min.js"></script>
<script type="text/javascript" src="${valCxt}upload/util/image.cut.js"></script>
<script type="text/javascript">
	$(function(){
		<#if fnCallBack?exists>
			<#list fnCallBack as fnCall>
				var _cutImg_${fnCall.targetId} = $("#${fnCall.targetId}").imageSwfCut({
					<#if fnCall.type??>uploadUrl:'${valCxt}_upload/upload.action?id=${fnCall.type?c}&upfmt=${fnCall.upfmt!}',</#if>
					callback:${fnCall.callback}
				});
				$("#${fnCall.targetId}").off("click").on("click",function(){
					_cutImg_${fnCall.targetId}.openDialog();
				});
			</#list>
		</#if>
	});
</script>